package com.example.springbootdubboprovider;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@EnableDubbo
public class SpringbootDubboProviderApplication {

  public static void main(String[] args) {
    ConfigurableApplicationContext context = SpringApplication.run(SpringbootDubboProviderApplication.class, args);
    Object bean = context.getBean("ServiceBean:com.creative.client.CreativeCommandService");
    System.out.println(bean);
    Object creativeServiceImpl = context.getBean("creativeServiceImpl");
    System.out.println(creativeServiceImpl);
  }
}
